<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        #box {
            width: 200px;
            height: 200px;
            background: red;
            margin: 50px;
            padding: 20px;
        }

        .xbox {
            width: 100px;
            height: 100px;
            background: yellow;
        }
    </style>
</head>
<body style="height: 1000px">
    <div id="box">
        <div class="xbox"></div>
    </div>
</body>
<script>

    var htmlElement = document.getElementById("box");

    htmlElement.onmousedown = function (eve) {
        // console.log("eve is" + eve);
        // console.log(eve.offsetX, eve.offsetY);
        // console.log(eve.clientX, eve.clientY);
        // console.log(eve.pageX, eve.pageY);
        // console.log(eve.screenX, eve.screenY);
        // console.log(eve.target);
        // console.log(eve.srcElement);
        // console.log(this);
        // console.log(this === eve.target);
        // console.log(eve.type);
        // console.log(eve.button);
        // console.log(eve.buttons);
    };

</script>

</html>